import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import {AwardsComponent} from "./awards/awards.component";
import {HttpClientModule} from "@angular/common/http";
import {AwardService} from "./svrs/award.service";
import {RouterModule} from "@angular/router";
import {PrizeComponent} from "./prize/prize.component";
import {RecordComponent} from "./record/record.component";
import { AwardComponent } from './award/award.component';
import {ModifyComponent} from "./modify/modify.component";
import {IncreaseComponent} from "./increase/increase.component";
import {DeleteComponent} from "./delete/delete.component";
import {DFCommonModule} from "df_ng_common"
import {DetailsComponent} from "./details/details.component";
import {buildPath} from "selenium-webdriver/http";
import {AwardDataPipe} from "./pipe/award.data.pipe";
import {WeUiModule} from"ngx-weui";
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

let routes = [
    {path:"",component:AwardsComponent},
    {path:"award/:prize",component:AwardComponent},
    {path:"prize-announce/:id",component:PrizeComponent},
    {path:"record",component:RecordComponent},
    {path:"modify/:awardId",component:ModifyComponent},
    {path:"increase/:awardID",component:IncreaseComponent},
    {path:"delete/:awardID1",component:DeleteComponent},
    {path:"details/:awardId2",component:DetailsComponent},
];
@NgModule({
  declarations: [
    AppComponent,
    AwardsComponent,
    PrizeComponent,
    RecordComponent,
    AwardComponent,
    ModifyComponent,
    IncreaseComponent,
    DeleteComponent,
    DetailsComponent,
    AwardDataPipe
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    RouterModule.forRoot(routes),
    DFCommonModule.forRoot(null),
    WeUiModule.forRoot(),
    BrowserAnimationsModule
  ],
  providers:[AwardService],
  bootstrap:[AppComponent]
})
export class AppModule { }
